local User = require("class/User")   ---引入
require("util/PrintUtil")
---测试人员
local Testor = Employee:new()	--继承
function Testor:test()   --重写 工作

    print("Testor name:"..self.attr_str_name.." 正在测试");
end
function Testor:work()   --重写 工作

    print("Testor name:"..self.attr_str_name.." 正在测试");
end

function Testor:meeting()   --重写 工作
    print("Testor name:"..self.attr_str_name.." 发起测试用例评审");
end

---重写的实验 -----------------------------
local testor1=Testor:new();
testor1.attr_str_name="测试赵六"

testor1:work();
testor1:meeting();

-----测试重载 改变参数个数看看  如果添加这个方法会报错 --------------


function Testor:work(workOrder)   --重写 工作
    if workOrder==0 then
        print("Testor name:"..self.attr_str_name.." 写测试用例中");
    else
        print("Testor name:"..self.attr_str_name.." 测试用例评审 ");
    end

end
function Testor:work(workContent,workNums)   --重写 工作

    index=1
    while index<=workNums do
        print("Testor name:"..self.attr_str_name.." 正在("..workContent..") 第几次:"..index );
        index=index+1;

    end

end

local testor2=Testor:new();
testor2.attr_str_name="测试阿毛"
testor2:work(0);
testor2:work(1);

---
testor2:work("测试天翼看家",10)